﻿<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>{:config('xhadmin.site_title')}</title>
	
	<link rel="shortcut icon" href="" />
    <!-- Bootstrap core CSS     -->
    <link href="__PUBLIC__/static/login_new/static/css/bootstrap.min.css" rel="stylesheet" />
    <!--  Material Dashboard CSS    -->
    <link href="__PUBLIC__/static/login_new/static/css/material-dashboard.css" rel="stylesheet" />
    <!--  CSS for Demo Purpose, don't include it in your project     -->
    <link href="__PUBLIC__/static/login_new/static/css/demo.css" rel="stylesheet" />
    <!--     Fonts and icons     -->
    <link href="__PUBLIC__/static/login_new/static/css/font-awesome.min.css" rel="stylesheet">

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/login_new/static/css/e26f8e48f3f747dfa9fb3972355ed854.css">
<!-- 	    <link href="__PUBLIC__/static/login_new/static/css/3a636a6d66e7464c94ec79220689e90e.css" rel="stylesheet"> -->
	
<!-- 	<link href="__PUBLIC__/static/login_new/static/css/common.css" rel="stylesheet"> -->
	<script type="text/javascript">
	if(navigator.appName == 'Microsoft Internet Explorer'){
		if(navigator.userAgent.indexOf("MSIE 5.0")>0 || navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0) {
			alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
		}
	}
	
	</script>
	
<script src="__PUBLIC__/static/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/static/js/plugins/layer/layer.min.js"></script>
<script src="__PUBLIC__/static/js/common/ajax-object.js"></script>
<script src="__PUBLIC__/static/js/common/Feng.js"></script>

	<script type="text/javascript" src="__PUBLIC__/static/login_new/static/js/jquery-3.2.1.js"></script>
	

	<script type="text/javascript" src="__PUBLIC__/static/login_new/static/js/material.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/static/login_new/static/js/perfect-scrollbar.jquery.min.js"></script>
    
	<script type="text/javascript" src="__PUBLIC__/static/login_new/static/js/material-dashboard.js"></script>
	<!-- Material Dashboard DEMO methods, don't include it in your project! -->
	<script type="text/javascript" src="__PUBLIC__/static/login_new/static/js/demo.js"></script>

	
	
	<script type="text/javascript" src="__PUBLIC__/static/login_new/static/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/static/login_new/static/js/util.js"></script>
	<script type="text/javascript" src="__PUBLIC__/static/login_new/static/js/common.min.js"></script>
	
	<script type="text/javascript" src="__PUBLIC__/static/login_new/static/js/require.js"></script> 
	
	
	
	

	
	
	
	
	
	
</head>
<body class="off-canvas-sidebar">
    <nav class="navbar navbar-primary navbar-transparent navbar-absolute">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation-example-2">
                    <span class="sr-only">{:config('xhadmin.site_title')}</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="javascript:volid(0);">{:config('xhadmin.site_title')}</a>
            </div>
            <div class="collapse navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    
                 <li class="">
                        <a href="{:url('app/supplier/register')}">
                            <i class="material-icons">person_add</i>  供应商注册
                        </a>
                                                                                        </li>
                    <li class="">
                        <a href="{:url('supplier/Login/')}">
                            <i class="material-icons">fingerprint</i> 供应商登录
                        </a>
                    </li>
                    
                </ul>
            </div>
        </div>
    </nav>
    <div class="wrapper wrapper-full-page">
        <div class="full-page login-page" filter-color="black" data-image="__PUBLIC__/static/login_new/static/picture/login.jpeg">
            <!--   you can change the color of the filter page using: data-color="blue | purple | green | orange | red | rose " -->
            <div class="content">
                <div class="container">
                    <div class="row">
                        <div class="col-md-4 col-sm-6 col-md-offset-4 col-sm-offset-3">
                        
                                <div class="card card-login card-hidden">
                                    <div class="card-header text-center" data-background-color="rose">
                                        <h4 class="card-title">{:config('xhadmin.site_title')}</h4>
                                        <h8 class="card-title">管理员登陆</h8>
                                        <div class="social-line">
                                            
                                        </div>
                                    </div>
                                    <p class="category text-center">
                                        请妥善保管好您的帐号密码
                                    </p>
                                    <div class="card-content" style="margin-top:30px">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="material-icons">face</i>
                                            </span>
                                            <div class="form-group label-floating">
                                                <label class="control-label">请输入管理员账号</label>
                                                <input name="username"   id="username"  type="text" class="form-control">
                                            </div>
                                        </div>
                                        <div class="input-group" style="margin-top:15px">
                                            <span class="input-group-addon">
                                                <i class="material-icons">lock_outline</i>
                                            </span>
                                            <div class="form-group label-floating">
                                                <label class="control-label">请输入登录密码</label>
                                                <input name="password" id="password" type="password" class="form-control password">
                                            </div>
                                        </div>
                                         <div class="input-group" style="margin-top:15px">
                                            <span class="input-group-addon">
                                                <i class="material-icons">grade</i>
                                            </span>
                                            <div class="form-group label-floating">
                                                <label class="control-label">请输入验证码</label>
                                                <input name="verify" id="averfiy" type="text" class="form-control password">               
                                            </div>
                                        </div>
                                        <div class="input-group" style="margin-top:5px">
                                            <span class="input-group-addon">
                                            
                                            </span>
                                            <div class="form-group label-floating">
                                                 <img src="{:url('admin/Login/Verify')}" onClick="this.src=this.src+'?'+Math.random()" alt="点击刷新验证码" id="img"  style="cursor:pointer;width:100%; height:40px;margin-top:">            
                                            </div>
                                        </div>
									</div>
									
                                    <div class="footer text-center">
									 
                                        <input name="提交" id="submit" type="button" onClick="login()" class="btn btn-primary btn-round" value="登录" >



                                       
									</div>
                                </div>
                        </div>
                    </div>
                </div>
            </div>
            <footer class="footer">
                <div class="container">
                    
                    <p class="copyright text-center">
                        &copy;
                        <script>
                            document.write(new Date().getFullYear())
                        </script>
                        <a href="javascript:volid(0);"> {:config('xhadmin.site_title')} </a>
                    </p>
                </div>
            </footer>
        </div>
    </div>
</body>
<div class="fixed-plugin">
    <div class="dropdown show-dropdown">
        <a href="#" data-toggle="dropdown">
            <i class="fa fa-cog fa-2x"> </i>
        </a>
        <ul class="dropdown-menu">
            <li class="header-title">背景风格</li>
            <li class="adjustments-line">
                <a href="javascript:void(0)" class="switch-trigger">
                    <p>背景图片开关</p>
                    <div class="togglebutton switch-sidebar-image">
                        <label>
                            <input type="checkbox" checked="">
                        </label>
                    </div>
                    <div class="clearfix"></div>
                </a>
            </li>
            <li class="adjustments-line">
                <a href="javascript:void(0)" class="switch-trigger active-color">
                    <p>纯色</p>
                    <div class="badge-colors pull-right">
                        <span class="badge filter active" data-color="black"></span>
                        <span class="badge filter badge-blue" data-color="blue"></span>
                        <span class="badge filter badge-green" data-color="green"></span>
                        <span class="badge filter badge-orange" data-color="orange"></span>
                        <span class="badge filter badge-red" data-color="red"></span>
                        <span class="badge filter badge-purple" data-color="purple"></span>
                        <span class="badge filter badge-rose" data-color="rose"></span>
                    </div>
                    <div class="clearfix"></div>
                </a>
            </li>
            <li class="header-title">选择背景</li>
            <li class="active">
                <a class="img-holder switch-trigger" href="javascript:void(0)">
                    <img src="__PUBLIC__/static/login_new/static/picture/sidebar-1.jpg" data-src="__PUBLIC__/static/login_new/static/picture/login.jpeg" alt="" />
                </a>
            </li>
            <li>
                <a class="img-holder switch-trigger" href="javascript:void(0)">
                    <img src="__PUBLIC__/static/login_new/static/picture/sidebar-2.jpg" data-src="__PUBLIC__/static/login_new/static/picture/lock.jpeg" alt="" />
                </a>
            </li>
            <li>
                <a class="img-holder switch-trigger" href="javascript:void(0)">
                    <img src="__PUBLIC__/static/login_new/static/picture/sidebar-3.jpg" data-src="__PUBLIC__/static/login_new/static/picture/register.jpeg" alt="" />
                </a>
            </li>
            <li>
                <a class="img-holder switch-trigger" href="javascript:void(0)">
                    <img src="__PUBLIC__/static/login_new/static/picture/sidebar-4.jpg" data-src="__PUBLIC__/static/login_new/static/picture/bg-pricing.jpeg" alt="" />
                </a>
            </li>
            <li class="button-container">
            		<div class="">
                        <a href="http://wpa.qq.com/msgrd?v=3&uin=712344620&site=qq&menu=yes" target="_blank" class="btn btn-rose btn-block">联系开发者</a>
                    </div>
                                        <div class="">
                        <a href="javascript:volid(0);" target="_blank" class="btn btn-info btn-block">下载客户端</a>
                    </div>
            </li>
            <li class="header-title">BEQIKAER</li>
            <li class="button-container">
               
            </li>
        </ul>
    </div>
</div>
</body>

<script type="text/javascript">
    $().ready(function() {
        demo.checkFullPageBackgroundImage();

        setTimeout(function() {
            // after 1000 ms we add the class animated to the login/register card
            $('.card').removeClass('card-hidden');
        }, 700)
    });
</script>

<script type="text/javascript">
document.onkeydown = function(e){ 
	var ev = document.all ? window.event : e;
	if(ev.keyCode==13) {
	  login();
	}
};

$('#username').focus();

function login(){
	var username = $("#username").val();
	var password = $("#password").val();
	var verify = $("#averfiy").val();
	
	if(!username || !password){
		Feng.info("请输入用户名或者密码！");
	    return false;
	}
	
	if(!verify){
		Feng.info("请输入验证码！");
	    return false;
	}
	
	var ajax = new $ax("{:url('admin/Login/index')}", function (data) {
		if (1 === data.code) {
			Feng.success(data.msg);
			$("#submit").val('正在登陆');
			window.location.href= data.url;
		} else {
			$("#img").attr('src',"{:url('admin/Login/Verify')}?="+Math.random());
			Feng.error(data.msg);
		}
		
	});
	ajax.set('username',username);
	ajax.set('password',password);
	ajax.set('verify',verify);
	ajax.start();
}

function reset(){
	$("#username").val('');
	$("#password").val('')
	$("#averfiy").val('')
}

</script>
</html>